<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>字符串</title>
	</head>
	<body>
		<script>
			//1.includes判定是包含然后直接返回布尔值
			const str="haoren";
			console.log(str.includes('a'));//true
			
			//2.repeat将字符串重复输出
			const lis=`<li>${str}</li>`;
			//<li>haoren</li><li>haoren</li><li>haoren</li>
			console.log(lis.repeat(3));
			  
		</script>
	</body>
</html>
